const webpackConfigProduction = require("./webpack.config.prod")

module.exports = {
  ...webpackConfigProduction,

  devServer: {
    port: "8888", // 端口号
    open: true,  // 自动打开浏览器
    compress: true, //启动gzip压缩
    liveReload: true,//启动自动更新
    historyApiFallback: true,
    proxy: {
      "/api1": {
        // 目标服务器地址
        target: "http://127.0.0.1:8080",
        pathRewrite: {
          "^/api1": ""
        }
      }
    }
  },

  mode: "development"
}